package com.jsy.sharding.pojo;


import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@Table(name = "tb_item")
public class Item implements Serializable {
    @Id
    private String id;
    private String name;
    private Long price;
    private Integer num;
    private String image;
    private Date createTime;
    private String status;

    public Item(String name, Long price, Integer num, String image, Date createTime, String status) {
        this.name = name;
        this.price = price;
        this.num = num;
        this.image = image;
        this.createTime = createTime;
        this.status = status;
    }
}
